// 需要鉴权的业务路由
import { RouteRecordRaw } from 'vue-router';
import Layout from '@/layout/index.vue';

const asyncRoutes: Array<RouteRecordRaw> = [
  {
    path: '/',
    hidden: false,
    component: Layout,
    redirect: '/home',
    meta: { title: '首页', icon: '', },
    children: [
      {
        path: '/home',
        meta: { title: '系统首页', icon: ''},
        name: "Home",
        component: () => import('@/views/home/index.vue')
      }
    ]
  },
  {
    path: '/originalGame',
    hidden: false,
    component: Layout,
    children: [
      {
        path: '/originalGame',
        name: "OriginalGame",
        component: () => import('@/views/games/originalGame/index.vue')
      }
    ]
  },
  {
    path: '/slotGame',
    hidden: false,
    component: Layout,
    children: [
      {
        path: '/slotGame',
        name: "SlotGame",
        component: () => import('@/views/games/slotGame/index.vue')
      }
    ]
  },
  {
    path: '/liveGame',
    hidden: false,
    component: Layout,
    children: [
      {
        path: '/liveGame',
        name: "LiveGame",
        component: () => import('@/views/games/liveGame/index.vue')
      }
    ]
  },
  {
    path: '/SportBTI',
    hidden: false,
    component: Layout,
    children: [
      {
        path: '/SportBTI',
        name: "SportBTI",
        component: () => import('@/views/sportBTI/index.vue')
      }
    ]
  },
  {
    path: '/deskGame',
    hidden: false,
    component: Layout,
    children: [
      {
        path: '/deskGame',
        name: "DeskGame",
        component: () => import('@/views/games/deskGame/index.vue')
      }
    ]
  },
  {
    path: '/promotions',
    hidden: false,
    component: Layout,
    children: [
      {
        path: '/promotions',
        name: "Promotions",
        component: () => import('@/views/promotions/index.vue')
      }
    ]
  },
  {
    path: '/vip',
    hidden: false,
    component: Layout,
    children: [
      {
        path: '/vip',
        name: "Vip",
        component: () => import('@/views/vip/index.vue')
      }
    ]
  },
  {
    path: '/help',
    hidden: false,
    component: Layout,
    children: [
      {
        path: '/help',
        name: "Help",
        component: () => import('@/views/help/index.vue')
      }
    ]
  },
  {
    path: '/playbox',
    hidden: false,
    component: Layout,
    children: [
      {
        path: '/playbox',
        name: "Playbox",
        component: () => import('@/views/playbox/index.vue')
      }
    ]
  },
  {
    path: '/me',
    hidden: false,
    component: Layout,
    children: [
      {
        path: '/me',
        name: "Me",
        component: () => import('@/views/me/index.vue')
      }
    ]
  },
  {
    path: '/walletH5',
    hidden: false,
    component: Layout,
    children: [
      {
        path: '/walletH5',
        name: "WalletH5",
        component: () => import('@/views/walletH5/index.vue')
      }
    ]
  },
  {
    path: '/process',
    name: 'process',
    meta: {
      title: 'Template configuration process',
      icon: '',
    },
    component: () => import('@/views/example/MarkdownPage.vue'),
  },
];

export default asyncRoutes;
